<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>StreamSaver.js + zip-stream.js流式下载&压缩文件</title>
<script src="../jsLibs/jquery-2.x.js"></script>
<script src="../jsLibs/StreamSaver.js"></script>
<script src="../jsLibs/ZipStream.js"></script>
<style>
#info { padding:1rem; }
</style>
</head>
<body>
<div id="info">
    <a href="#" onclick="downFiles()">打包下载</a>
</div>

<script>

let zipName = 'Test压缩包.zip';  
let files = [  
    {   "name": 'jspdf',  
        "url": './jspdf.htm'  
    }, 
    {  
        "name": 'zips',  
        "url": './zips.htm'  
    }
];

function downFiles(){
    zipFiles(zipName, files);
}

//http://192.168.1.253/erpData/Store/B1.%E7%94%B5%E6%9C%BA%E5%AE%89%E8%A3%85%E6%9D%BF/DJB01-W100-H114-T4.5-GY013.PDF
//http://192.168.1.253/erpData/Store/B1.%E7%94%B5%E6%9C%BA%E5%AE%89%E8%A3%85%E6%9D%BF/DJB02-W86-H101-T4.5-GY021.PDF

</script>
</body>
</html>
